-- GENERATED SPELL FOR [Bartleby] --


function spell0_6090(pUnit, Event) --@Drink Potion,Self--
pUnit:FullCastSpellOnTarget(9956,pUnit)
pUnit:RegisterEvent('Sorts_6090', 2000, 1)
end

function Sorts_6090(pUnit, Event)
local choix_sorts_6090 = math.random(0, 0)
if choix_sorts_6090 == 0 then
pUnit:RegisterEvent('spell0_6090', 1, 1)
end
end

function mob6090_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6090', math.random(1500, 3000), 1)
end

function mob6090_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6090_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6090_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6090, 1, 'mob6090_Action')
RegisterUnitEvent(6090, 2, 'mob6090_Leave')
RegisterUnitEvent(6090, 3, 'mob6090_Kill')
RegisterUnitEvent(6090, 4, 'mob6090_Die')
